//
//  ZFPageControlConfig.h
//  components
//
//  Created by linzaifei on 2021/9/2.
//

#import <UIKit/UIKit.h>
#import "Masonry/Masonry.h"

typedef NS_ENUM(NSInteger,ZFHorizontalMenuViewPageControlStyle) {
    ZFHorizontalMenuViewPageControlStyleClassic,    //系统自带经典样式
    ZFHorizontalMenuViewPageControlStyleAnimated,   //动画效果
    ZFHorizontalMenuViewPageControlStyleNone,       //不显示pageControl
};
typedef NS_ENUM(NSInteger,ZFHorizontalMenuViewPageControlAliment) {
    ZFHorizontalMenuViewPageControlAlimentRight,    //右上角靠右
    ZFHorizontalMenuViewPageControlAlimentCenter,   //下面居中
};

NS_ASSUME_NONNULL_BEGIN


@class ZFPageControl,ZFPageControlConfig;

@interface ZFPageControlView : UIView

///pagecontrol 样式，默认为动画样式
@property (nonatomic,assign) ZFHorizontalMenuViewPageControlStyle style;
/// 分页控件位置
@property (nonatomic,assign) ZFHorizontalMenuViewPageControlAliment aliment;

///配置
@property(nonatomic,strong)ZFPageControlConfig *defaultConfig;
///总共多少页 默认0
@property(nonatomic,assign)NSInteger numberOfPages;
///当前页
@property(nonatomic,assign)NSInteger currentPage;



@end


@interface ZFPageControl : UIView
///总共多少页 默认0
@property(nonatomic,assign)NSInteger numberOfPages;
///当前页
@property(nonatomic,assign)NSInteger currentPage;
///配置
@property(nonatomic,strong)ZFPageControlConfig *defaultConfig;

@end


@interface ZFPageControlConfig : NSObject

///选中颜色
@property(nonatomic,strong)UIColor *currentPageIndicatorTintColor;
///默认颜色
@property(nonatomic,strong)UIColor *pageIndicatorTintColor;
///每一个pagecontrol 大小 （14,4）
@property(nonatomic)CGSize size;
///每一个pagecontrol margin (2,2,2,2)
@property(nonatomic) UIEdgeInsets edgeInsets;
///每一个page 间距 默认5
@property(nonatomic,assign)NSInteger space;

@end

NS_ASSUME_NONNULL_END
